﻿using MY.ShoppingBackstage.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MY.ShoppingBackstage.BLL
{
    public class BrandService:BaseService<Brand>
    {

        public bool UpdateStatusByBrand(int Id,short Status) {
            using (var db=new WaiShopEntities())
            {
                Brand brand = db.Brand.FirstOrDefault(a => a.Id == Id);
                brand.Status = Status;
                    return db.SaveChanges()>0;
            }
        }
    }
}
